﻿<%@ Page Title="" Language="C#" EnableEventValidation="false" MasterPageFile="~/MainMaster.master"
    AutoEventWireup="true" CodeFile="NewProduct.aspx.cs" Inherits="NewProduct" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MARCDetails.ascx" TagName="MARCDetails" TagPrefix="MD" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<title>إضافة مجلة أو دورية</title>
    <link href="jqModal.css" rel="stylesheet" type="text/css" />

    <script src="jqModal.js" type="text/javascript"></script>
 <link type="text/css" href="jquery.jscrollpane.css" rel="stylesheet" media="all" />

<!-- latest jQuery direct from google's CDN -->

<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="jquery.mousewheel.js"></script>

<!-- the jScrollPane script -->
<script type="text/javascript" src="jquery.jscrollpane.min.js"></script>

    <script type="text/javascript">
        function there() {

            $("#dialog").jqm({ modal: true }).jqmShow();
//            var viewstate = document.getElementById("__VIEWSTATE");

//            alert(viewstate.value);
//            viewstate.value="0";

        }
        function there2() {

            $("#dialog2").jqm({ modal: true }).jqmShow();


        }
        function there3() {

            $("#dialog3").jqm({ modal: true }).jqmShow();


        }
        function there4() {

            $("#dialog4").jqm({ modal: true }).jqmShow();


        }
        $(function() {
            $('.scroll-pane').jScrollPane();
        });

        function uploadError(sender, args) {
            var result = document.getElementById("<%= results.ClientID %>");
            result.value = "يوجد خطأ فى التحميل";
        }

        function uploadStarted(sender, args) {

            var fileName = args.get_fileName();
            // alert(fileName);


            var fileExtension = fileName.substring(fileName.lastIndexOf('.') + 1);

            if (!(fileExtension == 'mrc' || fileExtension == 'txt')) {
                alert("mrc , txt الامتدادات المسموحة ");


                ifIgnoreError = true;
                sender._stopLoad();

            }


        }


        function uploadComplete(sender, args) {
            var contentType = args.get_contentType();
            var text = args.get_length() + " bytes";
            // alert(contentType);
            if (contentType.length > 0) {
                text += ", '" + contentType + "'";

            }
            var result = document.getElementById("<%= results.ClientID %>");
            result.value = text;
        }
       
    </script>

    <style type="text/css">
        .newzr3{
	background:  url('images/Untitled-2_03.png') right ;

	height:34px;
	 background-repeat:no-repeat;
	 float:left;
	 margin-top:-5px;
	 text-align: center;
	 padding-right:15px;
	 cursor:pointer;
	 font-family:Tahoma;
	 font-size:14px;
	 color:#003353;
	 text-decoration:none;
	 
}
.newzr3:hover{
	color: #00b4ff;
	background-image:url('images/Untitled-2ho_03.png');
	background-repeat:no-repeat;

} 
        tr .tabbone4{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:right;
	
}
.adel4{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  right;
}
         .zr3 {
	background-image:url('images/button2.png');
	display:block;
	float:right;
	padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;
}
.zr3:hover ,.zr3:active {
	background-image:url('images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
        
        .scroll-pane{width:100%;height:400px;overflow:auto;}
        
        .horizontal-only{height:auto;max-height:500px;}
        .tab
        {
           border: medium groove #008000; 
            }
            .jqmWindow1
        {
            display:none;
            position: fixed;
            top: 35%;
            left: 60%;
            margin-left: -250px;
            width: 400px;
            background-color: #fff;
            color: #333;
            border: 1px solid black;
            padding: 12px;
        }
             .jqmWindow2
        {
            display:none;
            position: fixed;
            top: 30%;
            left: 50%;
            margin-left: -250px;
            width: 500px;
            background-color: #fff;
            color: #333;
            border: 1px solid black;
            padding: 12px;
        }
        .jqmWindow
        {
            display:none;
            position: fixed;
            top: 5%;
            left: 35%;
            margin-left: -250px;
            width: 900px;
            background-color: #fff;
            color: #333;
            border: 1px solid black;
            padding: 12px;
        }
        .jqmOverlay
        {
            background-color: #000;
        }
        /* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
        * html .jqmWindow
        {
            position: absolute;
            top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
        }
        * html .jqmWindow1
        {
            position: absolute;
            top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
        }
        * html .jqmWindow2
        {
            position: absolute;
            top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

 <div class="jqmWindow" style="max-height:80%;overflow:auto" id="dialog2">
 <table>
 <tr>
 <td valign="top" >
 <a href="#" class="jqmClose" style="background-image:url('images/close.png');
	 width:39px;
	 height:40px;
	  background-repeat:no-repeat;
	  display:block;
	  float:left;	"></a>
      </td>
 <td>    <MD:MARCDetails ID="MARCDetails1" runat="server" /></td>
</tr>
 </table>
                    
                    <%-- <div class="scroll-pane">
                    
                   </div>--%>
                </div>
 
<div class="jqmWindow1" id="dialog4">
       <table  style="width:400px;">
                <tr>
                <td align="left">
                <a href="#" class="jqmClose" style="background-image:url('images/close.png');
	  width:39px;
   	  height:40px;
	  background-repeat:no-repeat;
	  display:block;
	  float:left;	"></a>
                </td>
                    <td  style="width:250px; float:left; padding-top:10px;"  >
                       <asp:LinkButton ID="newhands" CssClass="zr3"  runat="server" 
                            onclick="newhands_Click" meta:resourceKey="newhands" Text="ادخل المنتج يدوياُ" ></asp:LinkButton>
                       <asp:LinkButton ID="upload" CssClass="zr3" runat="server" 
                            onclick="newupload_Click" meta:resourceKey="upload" Text="تحميل" ></asp:LinkButton>
                   </td>
                </tr>
            </table>
        </div>

 <div class="jqmWindow2" id="dialog3">
        
        
        <table dir="ltr">
        <tr >
        <td style="width:50px;"><a href="#" class="jqmClose" style="background-image:url('images/close.png');
	 width:39px;
	 height:40px;
	  background-repeat:no-repeat;
	  display:block;
	  float:left;	"></a></td>
        <td style="width:250;">  <asp:AsyncFileUpload ID="AsyncFileUpload1" OnClientUploadError="uploadError"  
                            runat="server" Width="250px" UploadingBackColor="#CCFFFF" ThrobberID="myThrobber"
                            OnClientUploadStarted="uploadStarted" 
                OnUploadedComplete="AsyncFileUpload1_UploadedComplete" FailedValidation="False" 
                meta:resourcekey="AsyncFileUpload1Resource1" />
      </td>
        <td style="width:200px;"> 
                     <asp:Label ID="Label6" CssClass="stylelabel3" runat="server" Text="اختر الملف" 
                         meta:resourcekey="Label6Resource1"></asp:Label>
                     <asp:Label runat="server" ID="myThrobber" Style="display: none;" 
                         meta:resourcekey="myThrobberResource1"> <img align="absmiddle" alt="" src="uploading.gif" /> </asp:Label>
                    </td>
        </tr>
        <tr>
        <td></td>
        <td colspan="2" align="left">
         <asp:Label ID="results" Visible="False" CssClass="req" runat="server" Text="Label" 
                meta:resourcekey="resultsResource1"></asp:Label>
        </td>
        </tr>
        <tr >
        <td></td>
        <td  dir="ltr" style=" padding:10px; float:left;">
           <asp:Button  CssClass="zr3" ID="end" runat="server" Text="انتهاء" OnClick="end_Click"  meta:resourceKey="upload"/>
        </td>
                <td></td>
        </tr>
        </table>
                         
                        
        </div>
 
<div class="jqmWindow" id="dialog" >
        <a href="#" class="jqmClose" style="background-image:url('images/close.png');
	 width:39px;
	 height:40px;
	  background-repeat:no-repeat;
	  display:block;
	  float:left;	"></a>
        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div align="right" >
                  
                                    <table class="tab3" >
                                    <tr>
                                    <td class="he3">ادخال البيانات</td>
                                    </tr>
                                    <tr >
                                    <td class="tabbone3"  >
                                        <asp:Label ID="lblsurname" runat="server" Text="الفاتح" 
                                            meta:resourcekey="lblsurnameResource1"></asp:Label>
                                        </td>
                                   
                                    <td class="tabbone3" >
                                        <asp:Label ID="lblfax" runat="server" Text="حقل 008 الثابت الطول" 
                                            meta:resourcekey="lblfaxResource1"></asp:Label>
                                        </td>
                                    
                                    <td class="tabbone3">
                                        <asp:Label ID="lblposition" runat="server" Text="ردمك/ ردمد" 
                                            meta:resourcekey="lblpositionResource1"></asp:Label>
                                        </td>
                                    
                                    <td class="tabbone3" >
                                        <asp:Label ID="lblfirstname" runat="server" Text="النوع" 
                                            meta:resourcekey="lblfirstnameResource1"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td class="adel3">
                                        <asp:TextBox ID="leader" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                            BorderWidth="1px" meta:resourcekey="leaderResource1"></asp:TextBox>
                                        </td>
                                    
                                    <td class="adel3">
                                        <asp:TextBox ID="fix" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                            BorderWidth="1px" meta:resourcekey="fixResource1"></asp:TextBox>
                                        </td>
                                    
                                    <td class="adel3">
                                        <asp:TextBox ID="isn" runat="server"  Width="128px" BorderColor="Black" 
                                            BorderStyle="Solid" BorderWidth="1px" meta:resourcekey="isnResource1"></asp:TextBox>
                                        <br />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                            ControlToValidate="isn" ErrorMessage="<%$ Resources:Resource, required %>" 
                                            ValidationGroup="go" meta:resourcekey="RequiredFieldValidator3Resource1"></asp:RequiredFieldValidator>
                                        </td>
                                   
                                    <td class="adel3">
                                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                            SelectCommand="SELECT product_type+','+tag as names, [id] ,[product_type] FROM [product_types]">
                                        </asp:SqlDataSource>
                                        <asp:DropDownList ID="DropDownList1" runat="server"  BorderColor="Black" 
                                            BorderStyle="Solid" BorderWidth="1px"
                                            DataSourceID="SqlDataSource2" DataTextField="names" DataValueField="id" 
                                            meta:resourcekey="DropDownList1Resource1">
                                        </asp:DropDownList>
                                        </td>
                                    </tr>
                                        <tr  >
                                            <td  class="tabbone3" >
                                                <asp:Label ID="lblcountry" runat="server" Text="رقم استدعاء ديوي العشري" 
                                                    meta:resourcekey="lblcountryResource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="lblcity" runat="server" Text="بيانات النشر والتوزيع " 
                                                    meta:resourcekey="lblcityResource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label3" runat="server" Text="الناشر" 
                                                    meta:resourcekey="Label3Resource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label1" runat="server" Text="المؤلف" 
                                                    meta:resourcekey="Label1Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr >
                                            <td   class="adel3">
                                                <asp:TextBox ID="dewey" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="deweyResource1"></asp:TextBox>
                                            </td>
                                           
                                            <td  class="adel3">
                                                <asp:TextBox ID="pup" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="pupResource1"></asp:TextBox>
                                            </td>
                                           
                                             <td  class="adel3">
                                                 <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="True" 
                                                     BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                                     DataSourceID="SqlDataSource5" DataTextField="publisher" 
                                                     DataValueField="id" meta:resourcekey="DropDownList5Resource1">
                                                     <asp:ListItem Value="0" meta:resourcekey="ListItemResource1">اخر</asp:ListItem>
                                                 </asp:DropDownList>
                                                 <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
                                                     ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                     SelectCommand="SELECT [id], [publisher] FROM [publishers]">
                                                 </asp:SqlDataSource>
                                            </td>
                                            
                                            <td  class="adel3">
                                                <asp:TextBox ID="auth" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="authResource1"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr >
                                        <td class="tabbone3" >
                                            <asp:Label ID="lbladdress" runat="server" Text="العنوان وبيان المسئولية" 
                                                meta:resourcekey="lbladdressResource1"></asp:Label>
                                            </td>
                                        
                                        <td class="tabbone3" > 
                                            <asp:Label ID="lbltele1" runat="server" Text="الوصف المادي" 
                                                meta:resourcekey="lbltele1Resource1"></asp:Label>
                                            </td>
                                        
                                        <td class="tabbone3" >
                                            <asp:Label ID="lbltele2" runat="server" Text="رأس مصطلح موضوعي" 
                                                meta:resourcekey="lbltele2Resource1"></asp:Label>
                                            </td>
                                       
                                      <td class="tabbone3" >
                                            <asp:Label ID="lblemail1" runat="server" Text="ملاحظة عامة " 
                                                meta:resourcekey="lblemail1Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr >
                                        <td  class="adel3">
                                            <asp:TextBox ID="address" runat="server" BorderColor="Black" 
                                                BorderStyle="Solid" BorderWidth="1px" meta:resourcekey="addressResource2"></asp:TextBox>
                                          <br />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="address" ErrorMessage="<%$ Resources:Resource, required %>" 
                                                ValidationGroup="go" meta:resourcekey="RequiredFieldValidator4Resource1"></asp:RequiredFieldValidator>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="f300" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="f300Resource1"></asp:TextBox>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="topics" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="topicsResource1"></asp:TextBox>
                                         <br />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="topics" ErrorMessage="<%$ Resources:Resource, required %>" 
                                                ValidationGroup="go" meta:resourcekey="RequiredFieldValidator5Resource1"></asp:RequiredFieldValidator>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="notes" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="notesResource1"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr  >
                                            <td  class="tabbone3" >
                                                <asp:Label ID="Label2" runat="server" Text="رقم الاستدعاء بمكتبة الكونجرس" 
                                                    meta:resourcekey="Label2Resource1"></asp:Label>
                                            </td>
                                           <td class="tabbone3" >
                                                <asp:Label ID="Label4" runat="server" Text="(تكرارية الصدور (للدوريات" 
                                                    meta:resourcekey="Label4Resource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label5" runat="server" Text="تاريخ اخر معالجة" 
                                                    meta:resourcekey="Label5Resource1"></asp:Label>
                                            </td>
                                           
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label16" runat="server" Text="التصنيف الموضوعى" 
                                                    meta:resourcekey="Label16Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td   class="adel3">
                                                <asp:TextBox ID="lcs" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="lcsResource1"></asp:TextBox>
                                            </td>
                                           
                                            <td  class="adel3">
                                                <asp:DropDownList ID="DropDownList2" runat="server"  BorderColor="Black" 
                                                    BorderStyle="Solid" BorderWidth="1px"
                                                    DataSourceID="SqlDataSource3" DataTextField="freq" DataValueField="id" 
                                                    meta:resourcekey="DropDownList2Resource1">
                                                </asp:DropDownList>
                                                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                    SelectCommand="SELECT [freq], [id] FROM [frequencies]"></asp:SqlDataSource>
                                            </td>
                                            
                                            <td  class="adel3">
                                                <asp:TextBox ID="f005" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="f005Resource1"></asp:TextBox>
                                            </td>
                                           
                                            <td class="adel3">
                                                <asp:DropDownList ID="DropDownList3" runat="server"  BorderColor="Black" 
                                                    BorderStyle="Solid" BorderWidth="1px"
                                                    DataSourceID="SqlDataSource4" DataTextField="classification" 
                                                    DataValueField="id" meta:resourcekey="DropDownList3Resource1">
                                                </asp:DropDownList>
                                                <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                    SelectCommand="SELECT [id], [classification] FROM [classifications]">
                                                </asp:SqlDataSource>
                                            </td>
                                        </tr>
                                    </table>
                      
                      </div>
                      <div align="right" style="padding-right:20px;" >
                       <h4>
                                        الحقول من دون تاج او قيمة لن تسجل</h4>
                        </div>
                        <div align="right" >
                        <table align="right" style="padding-right:20px;">
                        <tr>
                         <td  valign="bottom"   style="padding-bottom:10px; padding-right:80px;">
                                <asp:Button  CssClass="zr3" ID="save" runat="server" Text="حفظ" 
                                    OnClick="save_Click" ValidationGroup="go" meta:resourcekey="saveResource1"  />
                            </td>
                            <td >
                            
                                   
                                    <eo:CallbackPanel  runat="server" ID="CallbackPanel1" Height="230px" 
                                        Width="650px" meta:resourcekey="CallbackPanel1Resource1" Triggers="">
                                        
                                    <eo:Grid ID="Grid1" Width="650px" Height="220px" runat="server" ColumnHeaderDescImage="00050304"
                                            BorderWidth="1px" IsCallbackByMe="False" BorderColor="#7F9DB9" Font-Size="8.75pt"
                                            Font-Names="Tahoma" ColumnHeaderAscImage="00050303" GridLines="Both"
                                            ColumnHeaderDividerImage="00050302" GridLineColor="199, 209, 223" AllowNewItem="True"
                                            FullRowMode="False" AllowPaging="True" PageSize="10" 
                                            meta:resourcekey="Grid1Resource1">
                                            <ItemStyles>
                                                <eo:GridItemStyleSet>
                                                 <ItemHoverStyle CssText="background-color: whitesmoke"></ItemHoverStyle>
                                                <CellStyle CssText="padding-left:8px;padding-top:2px;"></CellStyle>
                                                <ItemStyle CssText="background-color: white"></ItemStyle>
                                                </eo:GridItemStyleSet>
                                            </ItemStyles>
                                            <ColumnTemplates>
                                            <eo:TextBoxColumn>
                                                <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma">
                                                    </TextBoxStyle>
                                            </eo:TextBoxColumn>
                                            <eo:TextBoxColumn>
                                                <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma">
                                                    </TextBoxStyle></eo:TextBoxColumn>
                                            <eo:TextBoxColumn>
                                            <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma">
                                                    </TextBoxStyle>
                                            </eo:TextBoxColumn>
                                           </ColumnTemplates>
                                            <Columns>
                                            <eo:DeleteCommandColumn Width="70" DeleteText="الغاء" HeaderText="الغاء">
                                                </eo:DeleteCommandColumn>
                                                <eo:TextBoxColumn Width="270" HeaderText="الحقل"  DataField="field">
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn Width="130" HeaderText="المؤشر "  DataField="indicator">
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn Width="130" HeaderText="التاج" DataField="tag">
                                                </eo:TextBoxColumn>
                                                <eo:RowNumberColumn Width="50">
                                                </eo:RowNumberColumn>
                                             </Columns>
                                           
                                           <ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;"></ColumnHeaderStyle></eo:Grid>
                                           
                                           </eo:CallbackPanel>
                              
                            </td>
                            
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
            <Triggers>
            <asp:PostBackTrigger ControlID="save" />
            </Triggers>
        </asp:UpdatePanel>
        
    </div>
 
   
     
     <table style="width:500px; float:right; padding:10px;" dir="rtl" >
<tr>
    

<td style="width:100px; padding :10px;">
    <asp:Label ID="Label8" CssClass ="stylelabel3" runat="server" Text="كلمة البحث"  meta:resourceKey="lblsearch"></asp:Label>
    
    
</td>
<td style="width:100px; padding :10px;">

    <asp:TextBox ID="searchfield" runat="server" CausesValidation="True" 
        AutoPostBack="True" style="border:1px solid black"
        ontextchanged="searchfield_TextChanged" Width="150px" 
        meta:resourcekey="searchfieldResource1" ></asp:TextBox>
 <asp:AutoCompleteExtender ID="To_AutoCompleteExtender" runat="server"   
    ServiceMethod="GetACTList"  ServicePath="~/SelectMail.asmx" Enabled="True"  
        TargetControlID="searchfield" UseContextKey="True" ContextKey="product" 
        DelimiterCharacters="">
   
       
    </asp:AutoCompleteExtender>
    

</td>
<td></td>
</tr>
<tr>
<td style="width:100px; padding :10px;">
    <asp:Label ID="Label9" runat="server" CssClass="stylelabel3" Text="موضع البحث" meta:resourceKey="lblposition"></asp:Label>

</td>
<td  style="width:100px; padding :10px;">

    <asp:DropDownList ID="DropDownList4" runat="server"  
        style="border:1px solid black" Width="150px" 
        meta:resourcekey="DropDownList4Resource1" >
       
        <asp:ListItem Selected="True" Value="0"  meta:resourceKey="lblall">الكل</asp:ListItem>
        <asp:ListItem Value="product"  meta:resourceKey="lblendofsubs" >العنوان</asp:ListItem>
        <asp:ListItem Value="auther1"  meta:resourceKey="lblstartofsubs">اسم الجهة</asp:ListItem>
        <asp:ListItem Value="productdesc"   meta:resourceKey="lblstop">اسم الشركة</asp:ListItem>
     
       
    </asp:DropDownList>

</td>
<td style="width:100px; padding :10px;">

    <asp:Button ID="Button1" runat="server" CssClass="zr3" 
        onclick="ImageButton1_Click" style="float:right;" 
        Text="إبحث" meta:resourcekey="Button1Resource1" />
    
</td>
</tr>
</table>

<table width="100%"  >
<tr>
<td style="padding :5px;" >
<asp:LinkButton ID="newsub" CssClass="newzr3" runat="server" 
        meta:resourceKey="newsub" onclick="newsub_Click" Height="19px"></asp:LinkButton>
</td>
</tr>
</table>

    <div >
       
             <table class="tab3">
             <tr>
             <td class="he3" colspan="2">
              <asp:Label   ID="lblfilter" runat="server" Text="فلترة المنتجات" meta:resourceKey="lblfilter" />
             </td>
             </tr>
                        <tr>
                          
                            <td class="tabbone3">
                          
                              <asp:Label   ID="lblttype" runat="server" Text="النوع" meta:resourceKey="lbltype" />
                                
                            </td>
                            
                             <td class="tabbone3">
                           
                           <asp:Label    ID="lblstatus" runat="server" Text="التصنيف" meta:resourceKey="lblstatus" />
                                
                            </td>
                           
                        </tr>
                        <tr>
                        <td class="adel3">
                        <asp:DropDownList ID="allcompanies" runat="server" style="border:1px solid black"
                                                    DataSourceID="SqlDataSource4" DataTextField="classification" 
                                                    DataValueField="id"  AutoPostBack="True"
                                    onselectedindexchanged="allcompanies_SelectedIndexChanged" 
                                meta:resourcekey="allcompaniesResource1">
                                                </asp:DropDownList>
                        </td>
                      
                        <td class="adel3">
                          
                                <asp:DropDownList ID="act"  runat="server" DataSourceID="SqlDataSource2" style="border:1px solid black"
                                                    DataTextField="product_type" DataValueField="id" 
                                    AutoPostBack="True" onselectedindexchanged="act_SelectedIndexChanged" 
                                    meta:resourcekey="actResource1">
                                                </asp:DropDownList>
                            </td>
                        </tr>
                       </table>
              <br />
              
                
        
        <asp:ListView ID="ListView1" runat="server" DataKeyNames="id" OnItemCommand ="Listview1_ItemCommand"
        DataSourceID="SqlDataSource1" >
       <ItemTemplate>
        <table class="tab3"  style="margin:5px;background-color:#ededed;">
        <tr>
       <td colspan="2">
       <table class="tab3" style="width:810px;margin-top:3px; background-color:#028ac5;color:#fff">
       <tr  >
       <td style="width:600px">
       <asp:Label  ID="Label11" runat="server" 
               Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("product"))) %>' meta:resourcekey="Label11Resource1"
                                                 />
       </td>
       
       <td style="width:100px">
           <asp:Label ID="Label12" runat="server" 
               
               Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("product_type"))) %>' 
               meta:resourcekey="Label12Resource1" />
           </td>
       </tr>
       </table>
                                               
                                            </td>
      
        
        </tr>
        <tr>
         <td style="width:100px" align="right" >
                                                <asp:Label ID="lblstops" runat="server" Text="الوصف" meta:resourceKey="lblstop"  />
                                            </td>
        <td  style="width:700px" align="right">
       
        <asp:Label style="float:right" ID="Label10" runat="server" 
                Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("productdesc"))) %>' meta:resourcekey="Label10Resource1"
                                                 />
                                                 
        </td>
        </tr>
        <tr>
        <td  >
                                                <asp:Label ID="lblstartofsubs" runat="server" Text="المؤلف" meta:resourceKey="lblstartofsubs"
                                                     />
                                            </td>
                                            <td   >
                                            <asp:Label  ID="startofsub" runat="server" 
                                                    Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("auther1"))) %>' meta:resourcekey="startofsubResource1"
                                                 />
                                        </td>
        </tr>
        <tr>
        <td >
                                                <asp:Label ID="lblpaidfees" runat="server" Text="النشر والتوزيع" meta:resourceKey="lblpaidfees"
                                                     />
                                            </td>
        <td >
                                            <asp:Label  ID="paidfees" runat="server" 
                                                Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("publisher"))) %>' meta:resourcekey="paidfeesResource1"
                                                 />
                                        </td>                                    
        </tr>
        
        
        <tr>
        <td >
                                                <asp:Label ID="lblissn" runat="server" Text="الرقم التعريفى" meta:resourceKey="lblissn"
                                                     />
                                            </td>
        <td >
                                            <asp:Label  ID="Label13" runat="server" 
                                                Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("issn"))) %>' meta:resourcekey="Label13Resource1"
                                                 />
                                        </td>
        </tr>
        <tr>
        <td>
            <asp:Label ID="Label7" runat="server" meta:resourceKey="lbltype" Text="النوع" />
        </td>
        <td>
           <asp:Label ID="Label15" runat="server" 
               Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("topic"))) %>' 
                meta:resourcekey="Label15Resource1" />
        </td>
        </tr>
        <tr>
        <td colspan="2">
        <table style="width:100%">
        <tr>
       <td >
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="show" 
                                                meta:resourceKey="lblshow" CommandArgument='<%# Bind("id") %>' 
                                    Text="عرض  "></asp:LinkButton>
                                </td>
                                 <td >
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="edit" 
                                         meta:resourceKey="lbledit" CommandArgument='<%# Bind("id") %>' Text="تعديل"></asp:LinkButton>
                                </td>
                                 <td >
                                <asp:LinkButton ID="delete" runat="server" CommandName="delete" 
                                         meta:resourceKey="lbldelete" CommandArgument='<%# Bind("id") %>' Text="حذف"></asp:LinkButton>
                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" 
                        TargetControlID="delete" 
                        ConfirmText="<%$ Resources:Resource, delconfirm %>" Enabled="True" 
                          /></td>
                                
        </tr>
        </table>
        </td>
        </tr>
        </table>
        </ItemTemplate>
        
        <EmptyDataTemplate>
         <div dir="rtl" id="toto" class="he3">   لايوجد نتائج بحث     </div>
        </EmptyDataTemplate>
        
        <LayoutTemplate  >
            <ul ID="itemPlaceholderContainer" runat="server" style="">
                <li ID="itemPlaceholder" runat="server" />
                </ul>
                <div style="" align="center">
                    <asp:DataPager ID="DataPager1" runat="server" PageSize="4">
                        <Fields>
                            <asp:NextPreviousPagerField ShowFirstPageButton="True" 
                                ShowNextPageButton="False" FirstPageText="" LastPageText=""
                              NextPageText="" PreviousPageText=""   ShowPreviousPageButton="False" 
                                meta:resourcekey="NextPreviousPagerFieldResource1" />
                            <asp:NumericPagerField meta:resourcekey="NumericPagerFieldResource1" />
                            
                        </Fields>
                    </asp:DataPager>
                </div>
            </LayoutTemplate>
            
        </asp:ListView>
                <asp:SqlDataSource  ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="select p.*,t.product_type from  products p Left JOIN product_types t ON (t.id = p.product_type_id) Order BY p.id desc">
                </asp:SqlDataSource>
                </div>

               

            












</asp:Content>
